﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace BE.Web.Betfair.Interface.Requests
{
    /// <summary>
    /// Represents a bet market field
    /// </summary>
    internal class BetMarketField
    {
        /// <summary>
        /// Index of the field in a marketdataRow
        /// </summary>
        /// <remarks>Re index is zero based</remarks>
        public int FieldIndex { get; private set; }

        /// <summary>
        /// Name of the field
        /// </summary>
        public PropertyInfo TargetProperty { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="BetMarketField"/> class.
        /// </summary>
        /// <param name="index">The index.</param>
        /// <param name="property">The property</param>
        public BetMarketField(int index,PropertyInfo property)
        {
            this.FieldIndex = index;
            this.TargetProperty = property;
        }

    }
}
